/*style.css*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: small;
  font-style: normal;
  /* background-color: #f7f7f7; */
}

.chatBot {
  border: 1px solid lightgrey;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  overflow-y: clip;
  background: rgb(255, 255, 255,1) url("light2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#myheader {
  /* border: 2px solid blue; */
  background-color: #f7631b;
  text-align: center;
  padding: 5px 0;
  border-radius: 7px 7px 0 0;
}

#myp {
  color: #fff;
  margin: 0;
}

.chatbox {
  list-style: none;
  overflow-y: auto;
  height: 400px;
  /* border: 2px solid blue; */

  /* NEW: scrollbar fixes */
  scrollbar-gutter: stable overlay; /* pushes scrollbar to right edge */
  scrollbar-width: thin;            /* Firefox slim scrollbar */
  scrollbar-color: #f7631b transparent; /* Firefox thumb + track colors */
  
}

/* Applies to ALL scrollbars in WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px; /* slim width */
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #f7631b; /* theme color */
  border-radius: 5px;       /* rounded edges */
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Applies to ALL scrollbars in Firefox */
* {
  scrollbar-width: thin;                /* slim scrollbar */
  scrollbar-color: #f7631b transparent; /* thumb + track colors */
}

.chatbox li {
  margin-bottom: 10px;
}

.chat p {
  padding: 5px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

/* Alignment */
.chat-outgoing {
  display: flex;
  justify-content: flex-end;
}

.chat-outgoing p {
  color: #fff;
  background-color: #f7631b;
  margin-left: auto;
  padding: 5px;
}

.chat-incoming p {
  background-color: #ffe8d6;
  padding: 5px;
  margin: 5px;
}

.chat-input {
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input textarea {
	border: 1px solid #f7631b;
  border-radius: 7px;
  padding: 10px;
  resize: none;
  outline: none;
  overflow-y: auto;
  background-color: #dcdcdc85;
  font-size: 16px;
  color: #f7631b;
  font-weight: 300;
  height: 50px;
  width: 270px;
}

#cross {
  float: right;
  position: relative;
  top: -28px;
  left: -15px;
  cursor: pointer;
  color: white;
  font-weight: bolder;
  font-size: 20px;
}

#cross:hover {
  transition: all .5s;
}

.chatbox .chat p.error {
  color: #ffffff;
  background-color: #ff3737e8;
}

#sendBTN {
  width: 50%;
  padding: 8px;
  border: 0;
  outline: none;
  font-size: 15px;
  border-radius: 7px;
  background-color: #f7631b;
  cursor: pointer;
  color: white;
 margin: 10px auto 0 auto; /* auto left/right centers it */
  display: block;           /* ensures margin auto works */
}

.lastMessage {
  margin-top: 50px;
  font-size: 25px;
  font-weight: 600;
  color: darkgreen;
}
